package com.car.rental.user.constant;

import lombok.Getter;

@Getter
public enum DriverLicenseStatus {
    
    PENDING(1, "认证中"),
    APPROVED(2, "通过认证"),
    REJECTED(3, "未通过认证"),
    EXPIRED(4, "已过期");
    
    private final Integer code;
    private final String remark;
    
    DriverLicenseStatus(Integer code, String remark) {
        this.code = code;
        this.remark = remark;
    }
    
    public static String getRemarkByCode(Integer code) {
        for (DriverLicenseStatus status : values()) {
            if (status.getCode().equals(code)) {
                return status.getRemark();
            }
        }
        return null;
    }
} 